package com.ruoyi.repn.controller.front;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.repn.domain.ServicePackage;
import com.ruoyi.repn.service.IServicePackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author cpf
 * @date 2024/3/4 18:17
 * @description 服务套餐;Controller
 */
@RestController
@RequestMapping("/front/repn/package")
public class FrontServicePackageController extends BaseController{


    @Autowired
    private IServicePackageService servicePackageService;

    /**
     * 查询服务套餐;列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ServicePackage servicePackage)
    {
        startPage();
        List<ServicePackage> list = servicePackageService.selectServicePackageList(servicePackage);
        return getDataTable(list);
    }


}
